<template>
	<view>
		<ker-address :isFirst = "isFirst" @saveVal = "saveChange" :addressData="listData"></ker-address>
	</view>
</template>

<script>
	import kerAddress from '@/components/ker-address/ker-address.vue'
	export default {
		components:{kerAddress},
		data() {
			return {
				isFirst: true,  //是否为首次添加地址,  接口返回
				listData:{   //接口返回地址数据
					name: '张三',
					tel: '13845678952',
					address: {
						province: '新疆发动机发货大街上佛好好干狂欢节',
						city: '海口市',
						area: '龙华区'
					},
					detailsAddress: '海南省海口市龙华区滨海南省海口市龙华区滨海国际金融中心海国际金融中心',
					checked: false  
				}
			}
		},
		methods: {
			saveChange(e) {
				console.log(e)
			}
		}
	}
</script>

<style scoped lang="scss">
 page{
	 background: #F0F0F0;
 }
</style>
